home *** CD-ROM | disk | FTP | other *** search
/ Champak 49 / Volume 49 - JOGO DISK .iso / Games / funnyquest.swf / scripts / DefineSprite_315 / frame_8 / DoAction.as
Encoding:
Text File  |  2007-10-01  |  877 b   |  49 lines

  1. tellTarget("sec_mc")
  2. {
  3.    gotoAndStop(length(String(eval("../:sec"))));
  4. }
  5. str = String(sec);
  6. j = 0;
  7. k = length(str);
  8. while(k > 0)
  9. {
  10.    tellTarget("sec_mc/n" add j)
  11.    {
  12.       gotoAndStop(Number(mbsubstring(eval("../../:str"),eval("../../:k"),1)) + 1);
  13.    }
  14.    j++;
  15.    k--;
  16. }
  17. tellTarget("min_mc")
  18. {
  19.    gotoAndStop(length(String(eval("../:min"))));
  20. }
  21. str = String(min);
  22. j = 0;
  23. k = length(str);
  24. while(k > 0)
  25. {
  26.    tellTarget("min_mc/n" add j)
  27.    {
  28.       gotoAndStop(Number(mbsubstring(eval("../../:str"),eval("../../:k"),1)) + 1);
  29.    }
  30.    j++;
  31.    k--;
  32. }
  33. tellTarget("hour_mc")
  34. {
  35.    gotoAndStop(length(String(eval("../:hour"))));
  36. }
  37. str = String(hour);
  38. j = 0;
  39. k = length(str);
  40. while(k > 0)
  41. {
  42.    tellTarget("hour_mc/n" add j)
  43.    {
  44.       gotoAndStop(Number(mbsubstring(eval("../../:str"),eval("../../:k"),1)) + 1);
  45.    }
  46.    j++;
  47.    k--;
  48. }
  49.